#:import UIMix ui.base.UIMix
#:import MenuButton ui.audio_player.menu
#:import FileMenuButton ui.audio_player.menu

<MyMenuButton@MenuButton>:
    size_hint: 0.14, 1

<MainWindow>:
    orientation: 'vertical'
    canvas.before:
        Color:
            rgba: 18/255, 18/255, 18/255, 1
        Rectangle:
            pos:self.pos
            size:self.size

    BoxLayout:
        canvas.before:
            Color:
                rgba: 8/255, 9/255, 13/255, 1
            Rectangle:
                pos: self.pos
                size: self.size
        size_hint:1, None
        height:40
        FileMenuButton:
            size_hint: 0.14, 1
            text: '文件'
        MyMenuButton:
            text: '编辑'
        MyMenuButton:
            text: '音轨'
        MyMenuButton:
            text: '音频'
        MyMenuButton:
            text: '查看'
        MyMenuButton:
            text: '设置'
        MyMenuButton:
            text: '面板'
        MyMenuButton:
            text: '帮助'
        Widget

    ScrollView:
        id: id_sv
        bar_color: UIMix.scroll_bar_color
        bar_inactive_color: UIMix.scroll_bar_inactive_color
        bar_width: '20dp'
        do_scroll_x: False
        GridLayout:
            cols: 1
            id: id_content
            padding: 40, 40, 40, 20
            spacing: 20
            size_hint: None, None
            height: self.minimum_height
            width: id_sv.width - 25  # don't draw below scrollbar


    BoxLayout:
        size_hint: 1, None
        height: 60
        padding: 0, 0, 0, 10
        Widget:
        Label:
            size_hint: None, 1
            width: 120
            text: '音频输出'
            font_size: UIMix.MainWindow.font_size2
        Button:
            id: id_button_dropdown
            size_hint: None, 1
            width: 440
            text: '选择音频输出'
            font_size: UIMix.MainWindow.font_size1
        Label:
            id: id_restart_effect_tip
            size_hint: None, 1
            width: 140
            font_size: UIMix.MainWindow.font_size1
        Widget